home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILHIVE / FILEARCH.LZH / FILARC20.EXE / INSTBAT.BAT < prev    next >
DOS Batch File  |  1990-09-17  |  1KB  |  56 lines

  1. Echo off
  2. :This batch file should be located in the installation dirve/directory
  3. Cls
  4. type instbat.txt
  5. Pause
  6. if exist HDINST2.BAT del HDINST2.BAT
  7. if "%1"=="" goto NoParms
  8. :%1
  9. :CD\
  10. if EXIST %1\FAM.BAT goto Abort
  11. if EXIST %1\FA.BAT goto Abort
  12. goto Continue
  13. :NoParms
  14. Cls
  15. Echo .
  16. Echo .  You must enter the drive and directory
  17. Echo .  where File/Archive is installed .....
  18. Echo .
  19. Echo .  Use this format: INSTBAT x: Name
  20. Echo .
  21. Echo .  Where "x" is the drive and "Name" is the directory
  22. Echo .  You don't need a "\" in fromt of "Name"
  23. Echo .
  24. pause
  25. goto Quit
  26. :Abort
  27. Cls
  28. Echo .
  29. Echo .        Batch file(s) already exist(s) on %1\
  30. Echo .      In order to avoid destroying your file(s)
  31. Echo .        this procedure will terminate here
  32. Echo .
  33. Pause
  34. goto Quit
  35. :Continue
  36. Echo Echo off > %1\FAM.BAT
  37. Echo Echo off > %1\FA.BAT
  38. Echo Cls >> %1\FAM.BAT
  39. Echo Cls >> %1\FA.BAT
  40. Echo %1 >> %1\FAM.bat
  41. Echo %1 >> %1\FA.bat
  42. Echo CD \%2 >> %1\FAM.bat
  43. Echo CD \%2 >> %1\FA.bat
  44. Echo FAM  %%1 >>  %1\FAM.bat
  45. Echo FA %%1 >> %1\FA.bat
  46. Echo Cd\  >> %1\FAM.bat
  47. Echo Cd\  >> %1\FA.bat
  48. Cls
  49. Type instbat2.txt
  50. Echo .. The current directory should be %1\%2, and it is:
  51. CD
  52. Pause
  53. :Quit
  54. Cls
  55.  
  56.